package com.xishu.response;

import java.io.Serializable;

public enum ResponseStatus implements Serializable {

    OK(0, "OK", "OK"),
    USER_FROZEN(1, "賬戶已被凍結", "Your account has been suspended"),
    USER_NOT_EXIST(2, "賬戶不存在", "Couldn’t find your account"),
    USER_NAME_OR_PASSWORD_WRONG(3, "用戶名或者密碼錯誤", "Wrong Account Number or Password"),
    USER_NOT_LOGIN(4, "賬戶未登錄", "Please login first"),
    NAME_EXISTS(5, "名稱已存在", "Name already exists. Please try with another one"),
    ERROR_USER(6, "非法賬戶", "Unauthorized Accounts"),
    USER_LOCKED(7, "賬戶已經鎖定", "Your account has been suspended"),
    TABLE_NOT_EXIST(8, "清單不存在", "Couldn’t find the table/chart"),
    PRIVILEGE(9, "權限不夠", "You don’t have permission to access"),
    RANDOM_CODE_EXPIRE(10, "驗證碼已過期", "Verification code has expired. Please request a new one"),
    RANDOM_CODE_WRONG(11, "驗證碼錯誤", "Incorrect verification or security code"),
    NOT_CONFIG_LINE_UP(12, "請先配置餐廳的排隊設定", "Please setup your queuing management first"),
    NOT_MATCH_LINE_UP_CONFIG(13, "您輸入的人數太多，請將您的人數拆分。每組最多%s人", "You have to split your group with each one no more than %s people"),
    ORDER_EXIST(14, "訂單已經存在了", "Order already exists"),
    CONFIG_WRONG(15, "配置錯誤", "Wrong Settings"),
    EMAIL_SEND_FIRST(16, "請先選擇發送找回密碼郵件", "Please send password reset email first"),
    EMAIL_NOT_EXIST(17, "該郵箱賬戶不存在", "No email account found"),
    END_TIME_MUST_GREATER_THAN_START_TIME(18, "結束時間必須大於開始時間", "Start time must be earlier than end time"),
    FOOD_TABLE_NOT_EXIST(19, "餐枱不存在", "Table not exists"),
    SHOP_ID_CAN_NOT_EMPTY(20, "分店ID不能為空", "Branch ID cannot be empty"),
    NAME_CAN_NOT_EMPTY(21, "名稱不能為空", "Name cannot be empty"),
    PRICE_CAN_NOT_EMPTY(22, "價格不能為空", "Price cannot be empty"),
    OTHER_USER_OPERATE_THE_ORDER(23, "你的同伴已經開始結帳，請稍等", "Your companion already started the payment"),
    OTHER_USER_PAYING_THE_ITEM(24, "其它用戶正在為您選中的菜品結賬", "Someone is paying for the order you selected"),
    NOT_MATCH_SCENE(25, "沒有找到匹配的場景", "Couldn’t find the correlating scene"),
    SCENE_TIME_CONFLICT(26, "場景時間配置衝突", "Scene and time configuration conflicts"),
    OPENED_FOOD_TABLE(27, "餐桌已開枱", "Table already opened"),
    FOOD_TABLE_CONFIG_NOT_EXIST(28, "沒有匹配的餐枱配置", "Couldn't find the table setting"),
    SHOP_CLOSED(29, "餐廳尚未開始營業", "The store is closed now"),
    PASSWORD_WRONG(30, "密碼錯誤", "Wrong Password"),
    ITEM_PRICE_NOT_CONFIG(31, "未配置菜品價格", "Please setup the dish price first"),
    ORDER_CANCEL_CONFIG_PAY_TYPE(32, "當前結賬已被您的同伴撤銷", "The payment has been canceled by your companions"),
    ORDER_PART_PAID(33, "訂單已結賬或者部分結賬，不能修改支付方式", "Payment method cannot be changed because the order has been paid or partially paid"),
    SETTING_ORDER_PAY_TYPE(34, "有其它用戶正在設置支付方式", "Someone is changing the payment method"),
    ORDER_ITEM_DELETE(35, "購物車裡的菜品已經被刪除", "Your Selections have been deleted"),
    // ITEM_PAYED_OR_PAYING(36,"您選擇的菜品有客人正在結賬或者結過賬了", "Someone is paying or has paid the dish you selected"),
    SRC_DES_SAME_POSITION(37, "目標餐枱不能與原始餐枱相同", "The table you move to cannot be the same as current table"),
    ORDER_NOT_EXIST(38, "訂單不存在", "Coulnmd’t find the order"),
    DISCOUNT_TICKET_DOWNLOAD(39, "優惠券已下載，不能修改優惠券配置", "Cannot change coupon configuration that has already been downloaded"),
    DISCOUNT_TICKET_NOT_EXIST(40, "該優惠碼不存在", "Couldn’t find the coupon"),
    DISCOUNT_TICKET_TIME_NOT_MATCH(41, "該優惠券不能用於當前時段", "The coupon does not apply under current time"),
    DISCOUNT_TICKET_NOT_MATCH_AT_LEAST_COST(42, "您的消費尚未滿足該優惠券的最低消費要求", "Coupon does not fulfill the minimum consumption"),
    DISCOUNT_TICKET_CAN_USE_ONCE(43, "優惠券不能多張同時使用", "Limit one coupon per purchase and per transaction"),
    DISCOUNT_TICKET_EXPIRED(44, "該優惠券已過期", "Expired Coupons"),
    PRINTER_CONFIG_WRONG(45, "打印機配置錯誤，請重新配置", "Wrong printer settings, please set up again"),
    SOME_ORDER_MAY_PAYED(46, "部分訂單已支付，不能再次使用優惠券", "Coupon cannot apply because full or part of the order has been paid"),
    DISCOUNT_TICKET_EMPTY(47, "優惠券為空", "No coupon applied"),
    DISCOUNT_TICKET_CONFIG_WRONG(48, "優惠券配置錯誤", "Wrong coupon settings"),
    ORDER_PAYED_CAN_NOT_DELETE(49, "訂單已付款或部分付款，不能被刪除", "Cannot delete order that has been partially or fully paid"),
    BAR_COUNTER_PRINTER_NOT_CONFIG(50, "打印機未配置", "Please setup the printer first"),
    KITCHEN_PRINTER__NOT_CONFIG(51, "廚房打印機未配置", "Please setup the kitchen printer first"),
    USER_EXIST(52, "賬戶已存在", "Username already exists"),
    COMPANY_EXIST(53, "該餐廳/公司名已存在", "Restaurant / Company name already exists"),
    USER_ACTIVE(54, "賬戶已激活", "Account activated"),
    PRINTER_CONFIG_ERROR(55, "打印機配置錯誤", "Wrong printer setting"),
    ACCOUNT_MUST_BE_EMAIL(56, "請使用電郵地址作爲用戶名", "Please Enter Your Email as User Name"),
    USER_NOT_PASS(57, "賬戶未開通", "Pending Account"),
    ITEM_SEND_TO_KITCHEN(58, "菜品已發送到廚房，不能修改或刪除", "Order cannot be changed after send to kitchen"),
    PRINTER_LABEL_RELATED_TO_ITEM(59, "該打印標籤已經關聯了菜品，不能被刪除", "Label cannot be deleted when assigning dishes"),
    ORDER_LOCKED(60, "訂單已鎖定", "The payment already started, please cancel payment first"),
    SOME_PRINTER_LABEL_BIND(61, "該標籤已經用在其它打印機上面", "The label you selected has already been assigned on other printer"),
    FOOD_TABLE_MODEL_ENABLE(62, "服務員點餐-堂食 / 餐桌二維碼點餐 / 即時二維碼點餐已開啟", "Server Order - Dine In / Table QR Code Order / Server End QR Code Order Activated"),
    QUICK_FOOD_MODEL_ENABLE(63, "總二維碼堂食點餐 / 服務員點餐-堂食快餐已开启", "Main QR Code Order - Dine-in / Server Order - Fast Dining Activated"),
    COMBINE_ORDER_BUT_HAS_PAYED_ORDER(64, "不能合併，您選中了已經支付的訂單", "Cannot combine, some of your selections have been paid already"),
    NOT_PAYED_ORDER_CAN_NOT_RETURN_CASH(65, "訂單未結賬，不能退款", "Refund failed, your selections have not been paid yet"),
    REPEAT_RETURN_CASH(66, "重複退款", "Duplicate refund request"),
    ONE_ACCOUNT_ONLINE_TOUCH_DEVICE_MORE_THAN_LIMIT(67, "您的POS終端登陸數量超過上限", "You account reached the maximum terminal login"),
    ORDER_NOT_ORDERING_CAN_NOT_MOVE(68, "該單不能移枱", "Cannot move the order you selected"),
    GENERATE_DISCOUNT_TICKET_FIRST(69, "請生成優惠券後再嘗試下載", "Please create new coupons before download"),
    PASSWORD_NOT_RIGHT(70, "原密碼不正確", "Old password is incorrect"),
    PAY_SYSTEM_ERROR(71, "支付失敗，請您再試一次", "Payment failed, please try again"),
    OTHER_FOOD_TABLE_CONFIG_CONFIG_IT(72, "已经存在餐桌配置有相同的编号", "The table number has been used, please try again"),
    ORDER_ITEM_CONFIRMED(73, "該菜品已被落單", "The order has been placed"),
    ACCOUNT_NAME_EXIST(74, "您輸入的用戶名已存在", "User Name already exists. Please try with another one"),
    SIX_NUMBER(75, "二級密碼只能是6位數字", "Please use 6 digits for the Manager Key"),
    SCENE_NAME_EXIST(76, "您輸入的場景名已存在", "The scene name that you entered already exists"),
    NAME_AND_PRICE_LENGTH_MORE_THAN_50(77, "您輸入的細節個數超過%s", "Your details settings should be no more than %s."),
    PLEASE_CONFIG_STRIPE_LIVE_MODE(78, "請配寘live模式", "Please use the live key and secret"),
    ONE_ORDER_ITEM_OVER_LIMIT(79, "您輸入的菜品數量較多，請找服務員落單或折開成多單", "Your order quantity exceed the limit, please ask for server help or separate to multiple orders"),
    STRIPE_CONFIG_NOT_COMPLETE(80, "stripe未配置完成", "Stripe is not configured yet"),
    ORDER_EXPIRED(81, "订单已失效", "The order is expired"),
    EMAIL_EXITS(82, "該電郵已被注冊，請換一個試試", "Email already registered"),
    ORDER_PART_PAID_CAN_NOT_DELETE(83, "訂單已結賬或者部分結賬，不能取消開台", "Table cannot be cancel because the order has been paid or partially paid"),
    WAITER_OPERATE_THE_ORDER(84, "服務員正在操作訂單，請聯系服務員進行確認", "The server is working on the order. Please contact the server for confirmation"),
    SYSTEM_BUSY(85, "系統繁忙", "The system is busy"),
    ORDER_TIME_OUT(86, "結帳超時，請重新選擇", "Session timeout, please try again"),
    ONLY_CAN_PAY(87, "可輸入金額$%s", "Can input $%s"),
    //    CAN_NOT_DELETE_CATALOG(88, "品类删除naip", "品类删除"),
    USER_DEACTIVED(89, "該用戶已註銷，請聯繫DoLA重新開通", "The account is deactivated, please contact DoLA"),
    REACH_MAX_ACCOUNT_NUMBER(90, "賬戶數量到達限制，請連絡DoLA", "You reached the maximum number of accounts, please contact DoLA"),
    REACH_MAX_SHOP_NUMBER(91, "分店數量到達限制，請連絡DoLA", "You reached the maximum number of branches, please contact DoLA"),
    PASSWORD_WRONG_REACH_MAX_TIME(92, "您連續輸入錯誤密碼超過上限，該賬戶已被鎖定。請點擊忘記密碼，完成所有步驟解鎖賬戶。", "You have been blocked for too many attempts. Please reset your password by clicking \"Forget Your Password?\""),
    EMAIL_EXPIRE(93, "該鏈接已失效，請重新請求。", "The link is expired, please request a new one"),
    PRINTER_UNMORAL(94, "打印機异常", "Printer Errors"),
    DISCOUNT_TICKET_FOR_TANGSHI(95, "該優惠券只能堂食使用", "This coupon is for dine In only"),
    DISCOUNT_TICKET_FOR_TAKE_OUT(96, "該優惠券只能外賣使用", "This coupon is for take-away only"),
    DISCOUNT_TICKET_USED(98, "優惠券 %s 已被使用。", "The coupon %s has been applied. "),
    INVITE_EMAIL_EXIST(110, "您輸入的電郵已被註冊，請換一個試試", "Email already registered, please try with another one"),
    LOCK_SELECT_PAY_ALL(111, "已選擇全部結賬", "You have selected - Pay All"),
    LOCK_SELECT_PART_CASH_BY_PERSON(112, "已選擇按人數分賬", "You have selected - Even Split"),
    LOCK_SELECT_PART_CASH_CUSTOMIZED(113, "已選擇按金額分賬", "You have selected - Customize Split"),
    LOCK_SELECT_PART_FOOD(114, "已選擇分菜結賬", "You have selected - Pay Your Order"),
    STOCK_NOT_ENOUGH(115, "支付失敗，%s 餘量不足，請到失效訂單退款。", "Payment failed, the quantity of %s is not enough, please go to Expired Orders for refund."),
    PASSWORD_WRONG_REACH_MAX_TIME_BEND(117, "您連續輸入錯誤密碼超過上限，該賬戶已被鎖定。請在DoLA管理平台點擊忘記密碼，完成所有步驟解鎖賬戶。", "You have been blocked for too many attempts. Please go to DoLA Dashboard and reset your password by clicking \"Forget Your Password?\""),

    //系统内部提示
    NOT_SATISFY_AT_LEAST_COST(116, "订单不满足最低的支付金额", "The amount of the order does not meet the minimum requirement"),

    ORDER_TOO_LARGE(200, "訂單數量太多，請分批下載", "You select too many orders, please download in different batches."),
    ONLY_ONE_DISCOUNT_TICKET(201, "您只能用一張折扣券", "Only one discount coupon can be used"),
    SAME_TICKET_IN_ONE_ORDER(202, "該券正在使用/已使用", "This coupon has been appied/ used"),
    ORDER_ITEM_NOT_MATCH_TICKET(203, "沒有在訂單内找到適用該券的菜品", "Couldn't find an applicable dish for the coupon in your order"),

    PHONE_EXITS(300, "該電話號碼已被注冊，請換一個試試", "The phone number has been registered"),
    VIP_RENEW_NOT_CONFIG(301, "VIP續費未開啓", "VIP renewal hasn't been set up yet"),
    VIP_LEVEL(302, "積分範圍和已有等級的積分範圍重複", "The point range overlaps with the existing one's"),
    SCORE_NOT_ENOUGH(303, "兌換失敗，會員積分不夠", "You do not have enough points to redeem the coupon(s)"),
    DISCOUNT_TICKET_EXCHANGED(304, "優惠券已被使用", "The coupon has been applied"),
    RETURN_CASH_FAILED_SCORE_NOT_ENOUGH(305, "退款失敗，該會員獲得的積分已被用於兌換優惠券", "Refund failed because the points gained from this order have been redeemed for coupon(s)"),
    PHONE_REGISTER(306, "手機號碼已被注冊", "The phone number has been registered"),
    EMAIL_REGISTER(307, "電郵已被注冊", "The email has been registered"),
    EMAIL_AND_PHONE_REGISTER(308, "手機號碼和電郵已被注冊", "The phone number and email have been registered"),
    EXPORT_DATA_TOO_LARGE(309, "導出數據量太大，請縮小範圍", "The volume of data for export is too big, please narrow the range"),
    CUSTOMER_FROZEN(310, "會員賬戶已被關閉", "The account has been deactivated"),
    CUSTOMER_NOT_EXITS(311, "找不到該會員賬戶", "Couldn't find the account"),
    SMS_NOT_ENOUGH(312, "短信額度已被用完，請連絡系統管理員", "All the SMS credits have been used up, please contact the system administrator"),
    C_END_LOCK_ORDER(313, "訂單已開始結賬，若要加菜，請先撤銷結賬或告知服務員", "The payment process already started, please canel payment or ask servers to make changes"),
    RETURN_CASH_SCORE_NOT_ENOUGH(314, "退款失敗，該會員獲得的積分已被用於兌換優惠券", "Refund failed because the points gained from this order have been redeemed for coupon(s)"),
    SENDER_EMAIL_LENGTH_MORE_THAN_15(315, "電郵發件人的長度不能超過%s", "The length of Email Sender should be no more than %s"),
    TICKET_EXCHANGE_SELF(316, "該優惠券已存入您的賬戶", "The coupon has been saved to your account already"),
    TICKET_EXCHANGE_BY_OTHERS(317, "該優惠券已存入他人的賬戶", "The coupon has been saved to other's account already"),
    ORDER_AFTER_TICKET_USED(318, "因爲該訂單消費所發放的優惠券已被使用，不能退款", "Couldn't refund the order, the coupon issued by this order has been applied"),
    FOOD_TABLE_SAME(319, "餐桌重名", "Table name already exists"),
    //    SESSION_TIME_OUT(318, "因爲該訂單消費所發放的優惠券已被使用，不能退款", "Couldn't refund the order, the coupon issued by this order has been applied"),
    SUB_ORDER_DELETED(320, "分配訂單已經被刪除，請刷新界面", "The order has been deleted, please refresh"),
    AT_LEAST_KEEP_ONE_ORDER(321, "無法刪除最後一個未支付的訂單。", "Cannot delete the last unpaid bill"),
    ASSIN_CASH_MORE_THAN_TOTAL(322, "您輸入的金額超出未分配", "The number you entered exceeds the remains"),
    TASK_NOT_STOP(323, "若要刪除任務，請先停止", "Please stop the Marketing first to delete it"),
    SEND_TO_KITCHEN_AUDIT_ERROR(324, "該訂單已開始結帳，請先撤銷結帳", "The payment already started, please cancel payment first"),
    CAN_NOT_DELETE_PAY_TYPE_WHEN_SHOP_ONLINE(325, "您只能在餐廳結束營業後才能刪除支付方式", "You can delete this payment method only after your resturant is closed"),
    READER_LABEL_EXIST(326, "該刷卡機標籤已被使用", "The Terminal Label has been used"),
    READER_EXIST_UNDER_LOCATION(327, "若要刪除位置，請先刪除該位置的刷卡機", "Please delete the terminal(s) under the location first"),
    STRIPE_NOT_CONFIG(328, "請先配置Stripe密鑰", "Please configure the secrete of Stripe first"),
    ORDER_RETURN_CASH_CAN_NOT_MODIFY_PAY_TYPE(329, "訂單已退款，不能修改支付方式", "Fail to change the payment method, the order has been refunded"),
    ORDER_DELETED(330, "訂單已被刪除", "The order has been deleted"),
    ORDER_PAYED(331, "訂單已付款或部分付款", "Order has been partially or fully paid"),
    MENU_TIME_CONFLICT(332, "菜單的時間衝突了", "menu time conflict"),
    PRODUCT_IMPORTED(333, "該菜品已經被導入此品類", "The dish/combo has been imported to the category already"),

    DELETE_TICKET_HINT(334, "您的 %s 会员等级使用了該券，請先刪除會員等級內的優惠券。您的 %s 營銷使用了該券，請先刪除該營銷。", "The %s member level(s) are using this coupon, please delete the coupon from the member level(s) first. The %s Marketing are using this coupon, please delete the coupon from the Marketing first."),
    DELETE_TICKET_IN_VIP(335, "您的 %s 会员等级使用了該券，請先刪除會員等級內的優惠券。", "The %s member level(s) are using this coupon, please delete the coupon from the member level(s) first."),
    DELETE_TICKET_IN_MARKET_TASK(336, "您的 %s 營銷使用了該券，請先刪除該營銷。", "The %s Marketing are using this coupon, please delete the coupon from the Marketing first."),

    ITEM_LENGTH_TOO_LONG(337, "菜品名超出長度，請縮短後再試", "Dish Name exceeds the maximum length, please shorten it and try again "),


    USER_NO_MAIN_ITEM_PRIVILEGE(338, "請先聯絡您的經理，在主菜品庫裡添加該菜品", "Please contact your manager to add this dish into the main dish database"),

    TICKET_TANGSHI_TAKEOUT_SELECT_ONE(339, "該優惠券需至少適用於堂食或者外賣中的一項", "The coupon should be avaliable for at either Dine-in or Take-away or both"),

    USER_AT_LEAST_ONE_SHOP(340, "該帳號必須至少有一個分店", "There must be at least one branch under the account"),
    QUEUE_PREFIX_EXISTS(341, "隊列前綴已存在", "Queue Prefix already exists, please try again"),
    QUEUE_CAPACITY_EXISTS(342, "最大排隊人數已存在", "Queue Capacity already exists, please try again"),

    DELETE_CATEGORY(343, "請先刪除該品類下的 %s 或者将 %s 移至其他品類", "Please delete the %s under this category or move %s to another category first"),

    PART_CASH_PERSON_NUMBER(345, "請輸入小於或等於20的人數", "Please enter a number that is less than or equal to 20"),

    PART_CASH_MONEY_CREATE_SUB_NOT_EXCEEDING_NUMBER(346, "您的分單數量不能超過20", "The maximum no. of order splitting is 20"),

    PART_CASH_MONEY_CREATE_SUB_MAX_NUMBER(347, "您已到達最大的分單數量，請輸入剩餘金額", "You reached the maximum no. of order splitting, please pay the rest"),

    CUSTOMER_NOT_LOGIN(348, "賬戶未登錄", "Please login first"),

    PLEASE_SELECT_TIME(349, "請選擇時間", "Please Select Time"),

    PRODUCT_CONFIG_NOT_CONFIG(350, "請先配置 %s 的Foodpanda價格", "Please set the price of the %s in Foodpanda first"),

    CAN_NOT_MOVE(351, "加入失敗，訂單金額不能小於0", "Error, the amount of the order shouldn't be less than 0"),

    EMAIL_NOT_ENOUGH(352, "電郵額度已被用完，請連絡系統管理員", "All the email credits have been used up, please contact the system administrator"),


    SYSTEM_ERROR(99, "系統錯誤", "System Error"),

    INVALID_PARAMETER(100, "參數不合法", "Invalid Parameter");

    private int status;

    private String msg;

    private String msg_en;

    ResponseStatus(int status, String msg, String msg_en) {
        this.status = status;
        this.msg = msg;
        this.msg_en = msg_en;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getMsg_en() {
        return msg_en;
    }

    public void setMsg_en(String msg_en) {
        this.msg_en = msg_en;
    }
}

